package com.example.demo.mapper;

import com.example.demo.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VehicleMapper {
    List<Vehicle> selectVehicleByIdAndType(String id, String type);

    List<String> selectAllIds();

    // 查询座位数
    List<Integer> selectSeatsById(String id);

    //查询不同的车型
    List<String> selectTypes();

    int insertVehicle(Vehicle vehicle);

    int deleteVehicle(String id);
}
